﻿using Bll;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Myproject.BSM.PcWeb.PcChannel.Agency
{
    public partial class AgencyClassEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            string ID = Request.QueryString["id"];
            if (!string.IsNullOrEmpty(ID))
            {
                pc_Channel_AgencyClassEdit_AgencyClassId.Value = ID;
                AgencyClassModel model = new AgencyClassBLL().GetModel(Int32.Parse(ID));
                pc_Channel_AgencyClassEdit_goodsID.Value = model.GoodsID.ToString();
                pc_Channel_AgencyClassEdit_goodsname.Value = new GoodsBLL().GetModel(model.GoodsID).Name;
                pc_Channel_AgencyClassEdit_AgencyClassrank.Value = model.Rank.ToString();
                pc_Channel_AgencyClassEdit_AgencyClassname.Value = model.AgencyClassName;
                pc_Channel_AgencyClassEdit_AgencyClassNo.Value = model.AgencyClassNo;
            }
        }
    }
}